function sccategory()
{
	var editor = nicEditors.findEditor('textarea-2');
	var textarea = editor.getContent();
	$.ajax(
			{
				url:"/appweb/admin/category/add",
				type:"POST",
				data : {
					id: $('#id-category').val(),
					name: $('#name-category').val(),
					date : $('#date-category').val(),
					iduser : $('#user-category').val(),
					textarea:textarea
				},
				dataType:"html",
				async:true,
				success: function(data)
				{
					window.location.href="/appweb/admin/category/manage";
				},
				error: function(xhr,status,throwExe)
				{
					alert(throwExe);
				}
			}
			);
}